package com.example.commonmybatisplus.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * @Author ifredom
 * @Date 2022/6/6
 * @ClassName SexEnum
 * @Version 1.0.0
 * @Description 描述
 **/
@Getter
public enum GradeEnum {
    /**
     * 定义
     **/
    PRIMARY(1, "小学"),
    SECONDARY(2, "中学"),
    HIGH(3, "高中");

    GradeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @EnumValue
    private final int code;
    private final String desc;

}
